package cn.tedu.hospitalgroupproject.server.content.dao.persist.mapper;

import cn.tedu.hospitalgroupproject.server.content.pojo.entity.Appointment;
import cn.tedu.hospitalgroupproject.server.content.pojo.vo.AppointmentListVO;
import cn.tedu.hospitalgroupproject.server.content.pojo.vo.AppointmentStandardVO;
import cn.tedu.hospitalgroupproject.server.content.pojo.vo.ClinicListVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;
import java.util.List;


/**
 * 处理预约挂号数据的Mapper接口
 *
 */
@Repository
public interface AppointmentMapper extends BaseMapper<Appointment> {

/**
 *根据指定ID查找预约信息
 * @param id 预约ID
 * @return 匹配的预约挂号信息，如果没有匹配的数据，则返回null
 */
AppointmentStandardVO getStandardById(Long id);

    /*查询预约单列表*/
    List<AppointmentListVO> listAppointment();

    /*根据预约单创建时间查询预约单*/
    List<AppointmentListVO> listByCreateTime(LocalDateTime createTime);
    /*根据就诊时间查询预约单*/
    List<AppointmentListVO> listByVisitTime(LocalDateTime visitTime);
    /*根据医生姓名查询预约单*/
    List<AppointmentListVO> listByDoctorName(String doctorName);

}
